package com.gec.model.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import com.gec.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(description = "用户")
@TableName("itrip_user")
public class ITripUser extends BaseEntity {
	
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户名")
	@TableField("username")
	private String username;

	@ApiModelProperty(value = "密码")
	@TableField("password")
	private String password;

	@ApiModelProperty(value = "姓名")
	@TableField("name")
	private String name;

	@ApiModelProperty(value = "手机")
	@TableField("phone")
	private String phone;

	@ApiModelProperty(value = "邮箱")
	@TableField("email")
	private String email;

	@ApiModelProperty(value = "用户头像")
	@TableField("userImage")
	private String userImage;

	@ApiModelProperty(value = "激活（1：正常 0：停用）")
	@TableField("activated")
	private Integer activated;

	@TableField(exist = false)
	private List<ITripRole> roleList;

//	用户上传图片视频

	/**
	 * 缩略图
	 */
	@TableField(exist = false)
	private String image;

	/**
	 * 播放连接
	 */
	@TableField(exist = false)
	private String url;

	/**
	 * 播放id,阿里云提供
	 */
	@TableField(exist = false)
	private String playId;
}

